<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Ball Balancing Plate: C:/Users/Luca/Documents/Workspaces/Workspace/BallBalancing_ChibiOSRT/ch_settings/board.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="logo.jpg"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Ball Balancing Plate
   &#160;<span id="projectnumber">1.0.0</span>
   </div>
   <div id="projectbrief">ChibiOS-RT servos control firmware.</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('board_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">C:/Users/Luca/Documents/Workspaces/Workspace/BallBalancing_ChibiOSRT/ch_settings/board.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="board_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment">    ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010,</span>
<a name="l00003"></a>00003 <span class="comment">                 2011,2012 Giovanni Di Sirio.</span>
<a name="l00004"></a>00004 <span class="comment"></span>
<a name="l00005"></a>00005 <span class="comment">    This file is part of ChibiOS/RT.</span>
<a name="l00006"></a>00006 <span class="comment"></span>
<a name="l00007"></a>00007 <span class="comment">    ChibiOS/RT is free software; you can redistribute it and/or modify</span>
<a name="l00008"></a>00008 <span class="comment">    it under the terms of the GNU General Public License as published by</span>
<a name="l00009"></a>00009 <span class="comment">    the Free Software Foundation; either version 3 of the License, or</span>
<a name="l00010"></a>00010 <span class="comment">    (at your option) any later version.</span>
<a name="l00011"></a>00011 <span class="comment"></span>
<a name="l00012"></a>00012 <span class="comment">    ChibiOS/RT is distributed in the hope that it will be useful,</span>
<a name="l00013"></a>00013 <span class="comment">    but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment">    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00015"></a>00015 <span class="comment">    GNU General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment"></span>
<a name="l00017"></a>00017 <span class="comment">    You should have received a copy of the GNU General Public License</span>
<a name="l00018"></a>00018 <span class="comment">    along with this program.  If not, see &lt;http://www.gnu.org/licenses/&gt;.</span>
<a name="l00019"></a>00019 <span class="comment">*/</span>
<a name="l00020"></a>00020 
<a name="l00021"></a>00021 <span class="preprocessor">#ifndef _BOARD_H_</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="preprocessor">#define _BOARD_H_</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span>
<a name="l00024"></a>00024 <span class="comment">/*</span>
<a name="l00025"></a>00025 <span class="comment"> * Setup for ST STM32F0-Discovery board.</span>
<a name="l00026"></a>00026 <span class="comment"> */</span>
<a name="l00027"></a>00027 
<a name="l00028"></a>00028 <span class="comment">/*</span>
<a name="l00029"></a>00029 <span class="comment"> * Board identifier.</span>
<a name="l00030"></a>00030 <span class="comment"> */</span>
<a name="l00031"></a><a class="code" href="board_8h.html#a1020350a41472b2579a91b993c7c453f">00031</a> <span class="preprocessor">#define BOARD_ST_STM32F0_DISCOVERY</span>
<a name="l00032"></a><a class="code" href="board_8h.html#a02581754b212d533d96cde56c8145c9b">00032</a> <span class="preprocessor"></span><span class="preprocessor">#define BOARD_NAME                  &quot;ST STM32F0-Discovery&quot;</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span>
<a name="l00034"></a>00034 
<a name="l00035"></a>00035 <span class="comment">/*</span>
<a name="l00036"></a>00036 <span class="comment"> * Board oscillators-related settings.</span>
<a name="l00037"></a>00037 <span class="comment"> * NOTE: LSE not fitted.</span>
<a name="l00038"></a>00038 <span class="comment"> * NOTE: HSE not fitted.</span>
<a name="l00039"></a>00039 <span class="comment"> */</span>
<a name="l00040"></a>00040 <span class="preprocessor">#if !defined(STM32_LSECLK)</span>
<a name="l00041"></a><a class="code" href="board_8h.html#a9498f8f4ae2badbe39c078555ca9c793">00041</a> <span class="preprocessor"></span><span class="preprocessor">#define STM32_LSECLK                0</span>
<a name="l00042"></a>00042 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00043"></a>00043 <span class="preprocessor"></span>
<a name="l00044"></a>00044 <span class="preprocessor">#if !defined(STM32_HSECLK)</span>
<a name="l00045"></a><a class="code" href="board_8h.html#aad7ccbfca9d4bd146d0d48ad6473912e">00045</a> <span class="preprocessor"></span><span class="preprocessor">#define STM32_HSECLK                0</span>
<a name="l00046"></a>00046 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00047"></a>00047 <span class="preprocessor"></span>
<a name="l00048"></a><a class="code" href="board_8h.html#a1db400d06e42524f5e7f6da6888eb056">00048</a> <span class="preprocessor">#define STM32_HSE_BYPASS</span>
<a name="l00049"></a>00049 <span class="preprocessor"></span>
<a name="l00050"></a>00050 <span class="comment">/*</span>
<a name="l00051"></a>00051 <span class="comment"> * MCU type as defined in the ST header file stm32f0xx.h.</span>
<a name="l00052"></a>00052 <span class="comment"> */</span>
<a name="l00053"></a><a class="code" href="board_8h.html#a6d26457e4296efa18c8dd7e272d3d0ad">00053</a> <span class="preprocessor">#define STM32F0XX</span>
<a name="l00054"></a>00054 <span class="preprocessor"></span>
<a name="l00055"></a>00055 <span class="comment">/*</span>
<a name="l00056"></a>00056 <span class="comment"> * IO pins assignments.</span>
<a name="l00057"></a>00057 <span class="comment"> */</span>
<a name="l00058"></a><a class="code" href="board_8h.html#a9d92bdb4790a24e31bd7412b0160daff">00058</a> <span class="preprocessor">#define GPIOA_BUTTON                0</span>
<a name="l00059"></a><a class="code" href="board_8h.html#afb7901bdd81cbaf63a77adccc953bd24">00059</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOA_PIN1                  1</span>
<a name="l00060"></a><a class="code" href="board_8h.html#ae03444a6c3c41902b6a3d58721fa5448">00060</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOA_PIN2                  2</span>
<a name="l00061"></a><a class="code" href="board_8h.html#aa490e796204d6758822cd11ac39c854a">00061</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOA_PIN3                  3</span>
<a name="l00062"></a><a class="code" href="board_8h.html#a3828c7b468e32f2b175b13aa3f490baf">00062</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOA_PIN4                  4</span>
<a name="l00063"></a><a class="code" href="board_8h.html#a36375c382e976015e9b14a3dd51273e8">00063</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOA_PIN5                  5</span>
<a name="l00064"></a><a class="code" href="board_8h.html#a6b3a3de2f5811ee7ce8fac882addc381">00064</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOA_PIN6                  6</span>
<a name="l00065"></a><a class="code" href="board_8h.html#a4325a1ee7a8e8db35ea0d2f41659d56b">00065</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOA_PIN7                  7</span>
<a name="l00066"></a><a class="code" href="board_8h.html#a3525ad5aadd0473e6330234105bf2b65">00066</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOA_PIN8                  8</span>
<a name="l00067"></a><a class="code" href="board_8h.html#aa0f0a69047cd9277bb4dff4d834b7c2e">00067</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOA_PIN9                  9</span>
<a name="l00068"></a><a class="code" href="board_8h.html#aca3f2776220dbbb15e9e5924db3f3a16">00068</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOA_PIN10                 10</span>
<a name="l00069"></a><a class="code" href="board_8h.html#a9a9b88fcde1fa024e944424836005f15">00069</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOA_PIN11                 11</span>
<a name="l00070"></a><a class="code" href="board_8h.html#afa04dcef93c5983d3c5fc2a608598c37">00070</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOA_PIN12                 12</span>
<a name="l00071"></a><a class="code" href="board_8h.html#a7b9d2ea3e5488c32106e6bfb2e192c55">00071</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOA_SWDAT                 13</span>
<a name="l00072"></a><a class="code" href="board_8h.html#abe6c5d2162f9314024eed9ff196fb31c">00072</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOA_SWCLK                 14</span>
<a name="l00073"></a><a class="code" href="board_8h.html#a46acb855fad231790f79e54bc4d0af66">00073</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOA_PIN15                 15</span>
<a name="l00074"></a>00074 <span class="preprocessor"></span>
<a name="l00075"></a><a class="code" href="board_8h.html#aa2648d812dd7ac5db4a369d99cb39e15">00075</a> <span class="preprocessor">#define GPIOB_PIN0                  0</span>
<a name="l00076"></a><a class="code" href="board_8h.html#a79706be65d1a3914b4c074cc4935c2fa">00076</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOB_PIN1                  1</span>
<a name="l00077"></a><a class="code" href="board_8h.html#a90a35cfe7293f74466cf46350954ee29">00077</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOB_PIN2                  2</span>
<a name="l00078"></a><a class="code" href="board_8h.html#a0f04bb892c30f9de2bb954bb1b1ae3ad">00078</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOB_PIN3                  3</span>
<a name="l00079"></a><a class="code" href="board_8h.html#a3c06c0eacd36c5e8f9a0472270f3028f">00079</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOB_PIN4                  4</span>
<a name="l00080"></a><a class="code" href="board_8h.html#ab97b53c5beccd57c325d53b8a67babed">00080</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOB_PIN5                  5</span>
<a name="l00081"></a><a class="code" href="board_8h.html#afbdb30f231df0571934d93a052c08f0e">00081</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOB_PIN6                  6</span>
<a name="l00082"></a><a class="code" href="board_8h.html#aa6defd6b2924886d0e818ac192be03f7">00082</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOB_PIN7                  7</span>
<a name="l00083"></a><a class="code" href="board_8h.html#a56e8e833acac2dbe2d4638f176be6282">00083</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOB_PIN8                  8</span>
<a name="l00084"></a><a class="code" href="board_8h.html#a8175ccdd8ac896e4d38c570f7c72457e">00084</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOB_PIN9                  9</span>
<a name="l00085"></a><a class="code" href="board_8h.html#aafa39eeaae4d88d728d7799660b531ba">00085</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOB_PIN10                 10</span>
<a name="l00086"></a><a class="code" href="board_8h.html#afaa9f0a32c40d42f9038b2dd27cc6515">00086</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOB_PIN11                 11</span>
<a name="l00087"></a><a class="code" href="board_8h.html#ad917392d3554e6029bee8ee9caa87288">00087</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOB_PIN12                 12</span>
<a name="l00088"></a><a class="code" href="board_8h.html#aae560d0aa8ac8f4b5e173ea8c9ef2218">00088</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOB_PIN13                 13</span>
<a name="l00089"></a><a class="code" href="board_8h.html#ac6887c163fe7ed0e4b8e0039bf4def54">00089</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOB_PIN14                 14</span>
<a name="l00090"></a><a class="code" href="board_8h.html#a519934496e901bcefd1a410aee97296e">00090</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOB_PIN15                 15</span>
<a name="l00091"></a>00091 <span class="preprocessor"></span>
<a name="l00092"></a><a class="code" href="board_8h.html#a8b29a35d463fdeb98936223be420d2bf">00092</a> <span class="preprocessor">#define GPIOC_PIN0                  0</span>
<a name="l00093"></a><a class="code" href="board_8h.html#adc5846e2b81349872902580d656e31b8">00093</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOC_PIN1                  1</span>
<a name="l00094"></a><a class="code" href="board_8h.html#a39dbe2e967d2c39d9ca7a282b2f3941e">00094</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOC_PIN2                  2</span>
<a name="l00095"></a><a class="code" href="board_8h.html#aa2859ba835b7a77417bc9e068760972f">00095</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOC_PIN3                  3</span>
<a name="l00096"></a><a class="code" href="board_8h.html#a776541f2373108c806a0ce6f473a423f">00096</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOC_PIN4                  4</span>
<a name="l00097"></a><a class="code" href="board_8h.html#a3f83a6b3e683f60b62b44c132e400bb0">00097</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOC_PIN5                  5</span>
<a name="l00098"></a><a class="code" href="board_8h.html#ac80128596e60c1d26a710f5049b74cec">00098</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOC_PIN6                  6</span>
<a name="l00099"></a><a class="code" href="board_8h.html#a2c95e0b14a122f9f958ec02f33621f9c">00099</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOC_PIN7                  7</span>
<a name="l00100"></a><a class="code" href="board_8h.html#ad9fe774508289be007b794b1fb1b5ff8">00100</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOC_LED4                  8</span>
<a name="l00101"></a><a class="code" href="board_8h.html#a3166c438e70da9bed58c39f8a8115629">00101</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOC_LED3                  9</span>
<a name="l00102"></a><a class="code" href="board_8h.html#a5f503674d5ffd4d979b274f334c7b33c">00102</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOC_PIN10                 10</span>
<a name="l00103"></a><a class="code" href="board_8h.html#a7dbcb5cb4aeb0305b1fd76488ab19623">00103</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOC_PIN11                 11</span>
<a name="l00104"></a><a class="code" href="board_8h.html#a765dd7ddae838722db9e064c52f7de36">00104</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOC_PIN12                 12</span>
<a name="l00105"></a><a class="code" href="board_8h.html#abbcf570d3ec04d2ad8a100ecff190307">00105</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOC_PIN13                 13</span>
<a name="l00106"></a><a class="code" href="board_8h.html#accb1a04f064d9bca930eafbb2cf5d164">00106</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOC_OSC32_IN              14</span>
<a name="l00107"></a><a class="code" href="board_8h.html#a5d89739c0a188c15b2b9223a967202cb">00107</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOC_OSC32_OUT             15</span>
<a name="l00108"></a>00108 <span class="preprocessor"></span>
<a name="l00109"></a><a class="code" href="board_8h.html#ae1f88f2730f5b5b8ab4be7fd6314a8c5">00109</a> <span class="preprocessor">#define GPIOD_PIN0                  0</span>
<a name="l00110"></a><a class="code" href="board_8h.html#a7c54bd32ae300d1d46959ebdc46f34aa">00110</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOD_PIN1                  1</span>
<a name="l00111"></a><a class="code" href="board_8h.html#aa092f1c9dfa61758c392c9f189697758">00111</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOD_PIN2                  2</span>
<a name="l00112"></a><a class="code" href="board_8h.html#a51b2ae7279cfda50b2431ddd15c00725">00112</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOD_PIN3                  3</span>
<a name="l00113"></a><a class="code" href="board_8h.html#a96e14e372f407accefb5563d057efd56">00113</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOD_PIN4                  4</span>
<a name="l00114"></a><a class="code" href="board_8h.html#ac4ec3c0ea3218a417389b25a819e1e95">00114</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOD_PIN5                  5</span>
<a name="l00115"></a><a class="code" href="board_8h.html#a49c6597923441b5602345d7ef0a3d487">00115</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOD_PIN6                  6</span>
<a name="l00116"></a><a class="code" href="board_8h.html#a49a7ba6997764f87e1234e72483c1742">00116</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOD_PIN7                  7</span>
<a name="l00117"></a><a class="code" href="board_8h.html#a3dff47578248473ce282b44fc66da128">00117</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOD_PIN8                  8</span>
<a name="l00118"></a><a class="code" href="board_8h.html#a8a679b93e90892693e8d6c33d807ffe7">00118</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOD_PIN9                  9</span>
<a name="l00119"></a><a class="code" href="board_8h.html#a0b17e4d4764ddf7e6887f0fd7620963f">00119</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOD_PIN10                 10</span>
<a name="l00120"></a><a class="code" href="board_8h.html#ad58a63e083e9ec87180f80eeecf06d71">00120</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOD_PIN11                 11</span>
<a name="l00121"></a><a class="code" href="board_8h.html#af43c34a2ee6d9d7fea94ee467d81326a">00121</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOD_PIN12                 12</span>
<a name="l00122"></a><a class="code" href="board_8h.html#a72af035c720f005e7b2c0910d9999131">00122</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOD_PIN13                 13</span>
<a name="l00123"></a><a class="code" href="board_8h.html#afe33dc8ec33be45027b4b60dfde94937">00123</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOD_PIN14                 14</span>
<a name="l00124"></a><a class="code" href="board_8h.html#a4a9a03e830c7740cc37ca0399b428f7b">00124</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOD_PIN15                 15</span>
<a name="l00125"></a>00125 <span class="preprocessor"></span>
<a name="l00126"></a><a class="code" href="board_8h.html#a92b46be684a8a8d5c9df37bdacfbd3cd">00126</a> <span class="preprocessor">#define GPIOF_OSC_IN                0</span>
<a name="l00127"></a><a class="code" href="board_8h.html#aec513bdecf3e822b2600bb57d558d626">00127</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOF_OSC_OUT               1</span>
<a name="l00128"></a><a class="code" href="board_8h.html#a45842066fab4f6092931c9ee4f91beb5">00128</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOF_PIN2                  2</span>
<a name="l00129"></a><a class="code" href="board_8h.html#ab59221761c5c2c3cebc2c125913fc597">00129</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOF_PIN3                  3</span>
<a name="l00130"></a><a class="code" href="board_8h.html#a52e4eeac08327c1f4fdf205568232261">00130</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOF_PIN4                  4</span>
<a name="l00131"></a><a class="code" href="board_8h.html#a64e15aca55d67ef49db056db45aa0402">00131</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOF_PIN5                  5</span>
<a name="l00132"></a><a class="code" href="board_8h.html#a2ebc06cfd0a848322553162f73867e7b">00132</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOF_PIN6                  6</span>
<a name="l00133"></a><a class="code" href="board_8h.html#a13caa0719f4c1187dfc685f649d4d7d6">00133</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOF_PIN7                  7</span>
<a name="l00134"></a><a class="code" href="board_8h.html#a3ee59a45d7232b995b95173a7e7a56bd">00134</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOF_PIN8                  8</span>
<a name="l00135"></a><a class="code" href="board_8h.html#ac899e857b33dbcacca7d56b1f751ce28">00135</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOF_PIN9                  9</span>
<a name="l00136"></a><a class="code" href="board_8h.html#afba4cb2bb39470b14fe1728f2a346aa3">00136</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOF_PIN10                 10</span>
<a name="l00137"></a><a class="code" href="board_8h.html#a5d323ee66fff2a1afea9f737bde228fc">00137</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOF_PIN11                 11</span>
<a name="l00138"></a><a class="code" href="board_8h.html#aeb4ff76a72ed2f309fe97fd0cc3be7d1">00138</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOF_PIN12                 12</span>
<a name="l00139"></a><a class="code" href="board_8h.html#a07fa1211d10bce0ff89491bdcdade32a">00139</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOF_PIN13                 13</span>
<a name="l00140"></a><a class="code" href="board_8h.html#a94ff90d268a3db4eb6308a1d19a0d395">00140</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOF_PIN14                 14</span>
<a name="l00141"></a><a class="code" href="board_8h.html#a9900e46acf3f24185b1f7b6540c539d4">00141</a> <span class="preprocessor"></span><span class="preprocessor">#define GPIOF_PIN15                 15</span>
<a name="l00142"></a>00142 <span class="preprocessor"></span>
<a name="l00143"></a>00143 <span class="comment">/*</span>
<a name="l00144"></a>00144 <span class="comment"> * I/O ports initial setup, this configuration is established soon after reset</span>
<a name="l00145"></a>00145 <span class="comment"> * in the initialization code.</span>
<a name="l00146"></a>00146 <span class="comment"> * Please refer to the STM32 Reference Manual for details.</span>
<a name="l00147"></a>00147 <span class="comment"> */</span>
<a name="l00148"></a><a class="code" href="board_8h.html#a1304c508f7d7872fcb0f5d12fdd85868">00148</a> <span class="preprocessor">#define PIN_MODE_INPUT(n)           (0U &lt;&lt; ((n) * 2))</span>
<a name="l00149"></a><a class="code" href="board_8h.html#a17d26ffdf5e0e4c44f06dbb16c0363c3">00149</a> <span class="preprocessor"></span><span class="preprocessor">#define PIN_MODE_OUTPUT(n)          (1U &lt;&lt; ((n) * 2))</span>
<a name="l00150"></a><a class="code" href="board_8h.html#a356a8c63034c31d48ed836fd40089f9a">00150</a> <span class="preprocessor"></span><span class="preprocessor">#define PIN_MODE_ALTERNATE(n)       (2U &lt;&lt; ((n) * 2))</span>
<a name="l00151"></a><a class="code" href="board_8h.html#a91200c23541cf2829d91f9aeb9114f76">00151</a> <span class="preprocessor"></span><span class="preprocessor">#define PIN_MODE_ANALOG(n)          (3U &lt;&lt; ((n) * 2))</span>
<a name="l00152"></a><a class="code" href="board_8h.html#a9e7de50ad60645a96ed5081ee160e778">00152</a> <span class="preprocessor"></span><span class="preprocessor">#define PIN_ODR_LOW(n)              (0U &lt;&lt; (n))</span>
<a name="l00153"></a><a class="code" href="board_8h.html#a35e934f564219e9c9ed577c023711e18">00153</a> <span class="preprocessor"></span><span class="preprocessor">#define PIN_ODR_HIGH(n)             (1U &lt;&lt; (n))</span>
<a name="l00154"></a><a class="code" href="board_8h.html#a15972f7629e0dd4adb7a3b58f425580c">00154</a> <span class="preprocessor"></span><span class="preprocessor">#define PIN_OTYPE_PUSHPULL(n)       (0U &lt;&lt; (n))</span>
<a name="l00155"></a><a class="code" href="board_8h.html#a4cdfe57c8db63d6e1c4f4cdd586b1bb7">00155</a> <span class="preprocessor"></span><span class="preprocessor">#define PIN_OTYPE_OPENDRAIN(n)      (1U &lt;&lt; (n))</span>
<a name="l00156"></a><a class="code" href="board_8h.html#a5a33c4622ceb5344ab15f3bf9f985936">00156</a> <span class="preprocessor"></span><span class="preprocessor">#define PIN_OSPEED_2M(n)            (0U &lt;&lt; ((n) * 2))</span>
<a name="l00157"></a><a class="code" href="board_8h.html#a7fad3245e32aa82db69e12781ee7cb6b">00157</a> <span class="preprocessor"></span><span class="preprocessor">#define PIN_OSPEED_10M(n)           (1U &lt;&lt; ((n) * 2))</span>
<a name="l00158"></a><a class="code" href="board_8h.html#a99dc6c757d2b57ed81402bbf20cbea09">00158</a> <span class="preprocessor"></span><span class="preprocessor">#define PIN_OSPEED_40M(n)           (3U &lt;&lt; ((n) * 2))</span>
<a name="l00159"></a><a class="code" href="board_8h.html#a8ac977a5042e9153c2b148730fc201ae">00159</a> <span class="preprocessor"></span><span class="preprocessor">#define PIN_PUPDR_FLOATING(n)       (0U &lt;&lt; ((n) * 2))</span>
<a name="l00160"></a><a class="code" href="board_8h.html#aa0270bd5ac093358485e0c74004463a8">00160</a> <span class="preprocessor"></span><span class="preprocessor">#define PIN_PUPDR_PULLUP(n)         (1U &lt;&lt; ((n) * 2))</span>
<a name="l00161"></a><a class="code" href="board_8h.html#a6ca53a3c51d764a6b0e749d8d1b6bf24">00161</a> <span class="preprocessor"></span><span class="preprocessor">#define PIN_PUPDR_PULLDOWN(n)       (2U &lt;&lt; ((n) * 2))</span>
<a name="l00162"></a><a class="code" href="board_8h.html#a3ed50810d476eec14455af45039f78f6">00162</a> <span class="preprocessor"></span><span class="preprocessor">#define PIN_AFIO_AF(n, v)           ((v##U) &lt;&lt; ((n % 8) * 4))</span>
<a name="l00163"></a>00163 <span class="preprocessor"></span>
<a name="l00164"></a>00164 <span class="comment">/*</span>
<a name="l00165"></a>00165 <span class="comment"> * GPIOA setup:</span>
<a name="l00166"></a>00166 <span class="comment"> *</span>
<a name="l00167"></a>00167 <span class="comment"> * PA0  - BUTTON                    (input floating).</span>
<a name="l00168"></a>00168 <span class="comment"> * PA1  - PIN1                      (input pullup).</span>
<a name="l00169"></a>00169 <span class="comment"> * PA2  - PIN2                      (input pullup).</span>
<a name="l00170"></a>00170 <span class="comment"> * PA3  - PIN3                      (input pullup).</span>
<a name="l00171"></a>00171 <span class="comment"> * PA4  - PIN4                      (input pullup).</span>
<a name="l00172"></a>00172 <span class="comment"> * PA5  - PIN5                      (input pullup).</span>
<a name="l00173"></a>00173 <span class="comment"> * PA6  - PIN6                      (input pullup).</span>
<a name="l00174"></a>00174 <span class="comment"> * PA7  - PIN7                      (input pullup).</span>
<a name="l00175"></a>00175 <span class="comment"> * PA8  - PIN8                      (input pullup).</span>
<a name="l00176"></a>00176 <span class="comment"> * PA9  - PIN9                      (input pullup).</span>
<a name="l00177"></a>00177 <span class="comment"> * PA10 - PIN10                     (input pullup).</span>
<a name="l00178"></a>00178 <span class="comment"> * PA11 - PIN11                     (input pullup).</span>
<a name="l00179"></a>00179 <span class="comment"> * PA12 - PIN12                     (input pullup).</span>
<a name="l00180"></a>00180 <span class="comment"> * PA13 - SWDAT                     (alternate 0).</span>
<a name="l00181"></a>00181 <span class="comment"> * PA14 - SWCLK                     (alternate 0).</span>
<a name="l00182"></a>00182 <span class="comment"> * PA15 - PIN15                     (input pullup).</span>
<a name="l00183"></a>00183 <span class="comment"> */</span>
<a name="l00184"></a><a class="code" href="board_8h.html#ad16dfcfb4a90d9b761e03c3ac6aadd2e">00184</a> <span class="preprocessor">#define VAL_GPIOA_MODER             (PIN_MODE_INPUT(GPIOA_BUTTON) |         \</span>
<a name="l00185"></a>00185 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOA_PIN1) |           \</span>
<a name="l00186"></a>00186 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOA_PIN2) |           \</span>
<a name="l00187"></a>00187 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOA_PIN3) |           \</span>
<a name="l00188"></a>00188 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOA_PIN4) |           \</span>
<a name="l00189"></a>00189 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOA_PIN5) |           \</span>
<a name="l00190"></a>00190 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOA_PIN6) |           \</span>
<a name="l00191"></a>00191 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOA_PIN7) |           \</span>
<a name="l00192"></a>00192 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOA_PIN8) |           \</span>
<a name="l00193"></a>00193 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOA_PIN9) |           \</span>
<a name="l00194"></a>00194 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOA_PIN10) |          \</span>
<a name="l00195"></a>00195 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOA_PIN11) |          \</span>
<a name="l00196"></a>00196 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOA_PIN12) |          \</span>
<a name="l00197"></a>00197 <span class="preprocessor">                                     PIN_MODE_ALTERNATE(GPIOA_SWDAT) |      \</span>
<a name="l00198"></a>00198 <span class="preprocessor">                                     PIN_MODE_ALTERNATE(GPIOA_SWCLK) |      \</span>
<a name="l00199"></a>00199 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOA_PIN15))</span>
<a name="l00200"></a><a class="code" href="board_8h.html#a7e762012e6bb42ab282f57b3d0b1f101">00200</a> <span class="preprocessor"></span><span class="preprocessor">#define VAL_GPIOA_OTYPER            (PIN_OTYPE_PUSHPULL(GPIOA_BUTTON) |     \</span>
<a name="l00201"></a>00201 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOA_PIN1) |       \</span>
<a name="l00202"></a>00202 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOA_PIN2) |       \</span>
<a name="l00203"></a>00203 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOA_PIN3) |       \</span>
<a name="l00204"></a>00204 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOA_PIN4) |       \</span>
<a name="l00205"></a>00205 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOA_PIN5) |       \</span>
<a name="l00206"></a>00206 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOA_PIN6) |       \</span>
<a name="l00207"></a>00207 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOA_PIN7) |       \</span>
<a name="l00208"></a>00208 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOA_PIN8) |       \</span>
<a name="l00209"></a>00209 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOA_PIN9) |       \</span>
<a name="l00210"></a>00210 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOA_PIN10) |      \</span>
<a name="l00211"></a>00211 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOA_PIN11) |      \</span>
<a name="l00212"></a>00212 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOA_PIN12) |      \</span>
<a name="l00213"></a>00213 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOA_SWDAT) |      \</span>
<a name="l00214"></a>00214 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOA_SWCLK) |      \</span>
<a name="l00215"></a>00215 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOA_PIN15))</span>
<a name="l00216"></a><a class="code" href="board_8h.html#abf9ac480a76c990769dbe5d0bb15f56d">00216</a> <span class="preprocessor"></span><span class="preprocessor">#define VAL_GPIOA_OSPEEDR           (PIN_OSPEED_2M(GPIOA_BUTTON) |          \</span>
<a name="l00217"></a>00217 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOA_PIN1) |            \</span>
<a name="l00218"></a>00218 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOA_PIN2) |            \</span>
<a name="l00219"></a>00219 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOA_PIN3) |            \</span>
<a name="l00220"></a>00220 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOA_PIN4) |            \</span>
<a name="l00221"></a>00221 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOA_PIN5) |            \</span>
<a name="l00222"></a>00222 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOA_PIN6) |            \</span>
<a name="l00223"></a>00223 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOA_PIN7) |            \</span>
<a name="l00224"></a>00224 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOA_PIN8) |            \</span>
<a name="l00225"></a>00225 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOA_PIN9) |            \</span>
<a name="l00226"></a>00226 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOA_PIN10) |           \</span>
<a name="l00227"></a>00227 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOA_PIN11) |           \</span>
<a name="l00228"></a>00228 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOA_PIN12) |           \</span>
<a name="l00229"></a>00229 <span class="preprocessor">                                     PIN_OSPEED_40M(GPIOA_SWDAT) |          \</span>
<a name="l00230"></a>00230 <span class="preprocessor">                                     PIN_OSPEED_40M(GPIOA_SWCLK) |          \</span>
<a name="l00231"></a>00231 <span class="preprocessor">                                     PIN_OSPEED_40M(GPIOA_PIN15))</span>
<a name="l00232"></a><a class="code" href="board_8h.html#a6aa1810521655aff39e0c7874721d99a">00232</a> <span class="preprocessor"></span><span class="preprocessor">#define VAL_GPIOA_PUPDR             (PIN_PUPDR_FLOATING(GPIOA_BUTTON) |     \</span>
<a name="l00233"></a>00233 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOA_PIN1) |         \</span>
<a name="l00234"></a>00234 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOA_PIN2) |         \</span>
<a name="l00235"></a>00235 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOA_PIN3) |         \</span>
<a name="l00236"></a>00236 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOA_PIN4) |         \</span>
<a name="l00237"></a>00237 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOA_PIN5) |         \</span>
<a name="l00238"></a>00238 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOA_PIN6) |         \</span>
<a name="l00239"></a>00239 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOA_PIN7) |         \</span>
<a name="l00240"></a>00240 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOA_PIN8) |         \</span>
<a name="l00241"></a>00241 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOA_PIN9) |         \</span>
<a name="l00242"></a>00242 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOA_PIN10) |        \</span>
<a name="l00243"></a>00243 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOA_PIN11) |        \</span>
<a name="l00244"></a>00244 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOA_PIN12) |        \</span>
<a name="l00245"></a>00245 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOA_SWDAT) |        \</span>
<a name="l00246"></a>00246 <span class="preprocessor">                                     PIN_PUPDR_PULLDOWN(GPIOA_SWCLK) |      \</span>
<a name="l00247"></a>00247 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOA_PIN15))</span>
<a name="l00248"></a><a class="code" href="board_8h.html#a8cde079f33594b124a570f0fe78d5cd5">00248</a> <span class="preprocessor"></span><span class="preprocessor">#define VAL_GPIOA_ODR               (PIN_ODR_HIGH(GPIOA_BUTTON) |           \</span>
<a name="l00249"></a>00249 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOA_PIN1) |             \</span>
<a name="l00250"></a>00250 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOA_PIN2) |             \</span>
<a name="l00251"></a>00251 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOA_PIN3) |             \</span>
<a name="l00252"></a>00252 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOA_PIN4) |             \</span>
<a name="l00253"></a>00253 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOA_PIN5) |             \</span>
<a name="l00254"></a>00254 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOA_PIN6) |             \</span>
<a name="l00255"></a>00255 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOA_PIN7) |             \</span>
<a name="l00256"></a>00256 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOA_PIN8) |             \</span>
<a name="l00257"></a>00257 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOA_PIN9) |             \</span>
<a name="l00258"></a>00258 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOA_PIN10) |            \</span>
<a name="l00259"></a>00259 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOA_PIN11) |            \</span>
<a name="l00260"></a>00260 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOA_PIN12) |            \</span>
<a name="l00261"></a>00261 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOA_SWDAT) |            \</span>
<a name="l00262"></a>00262 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOA_SWCLK) |            \</span>
<a name="l00263"></a>00263 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOA_PIN15))</span>
<a name="l00264"></a><a class="code" href="board_8h.html#a8b4e7aaf8051d3e479a6f3569a49e0a9">00264</a> <span class="preprocessor"></span><span class="preprocessor">#define VAL_GPIOA_AFRL              (PIN_AFIO_AF(GPIOA_BUTTON, 0) |         \</span>
<a name="l00265"></a>00265 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOA_PIN1, 0) |           \</span>
<a name="l00266"></a>00266 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOA_PIN2, 0) |           \</span>
<a name="l00267"></a>00267 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOA_PIN3, 0) |           \</span>
<a name="l00268"></a>00268 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOA_PIN4, 0) |           \</span>
<a name="l00269"></a>00269 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOA_PIN5, 0) |           \</span>
<a name="l00270"></a>00270 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOA_PIN6, 0) |           \</span>
<a name="l00271"></a>00271 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOA_PIN7, 0))</span>
<a name="l00272"></a><a class="code" href="board_8h.html#a250f4c63cbd770a83e2186d130b5f41b">00272</a> <span class="preprocessor"></span><span class="preprocessor">#define VAL_GPIOA_AFRH              (PIN_AFIO_AF(GPIOA_PIN8, 0) |           \</span>
<a name="l00273"></a>00273 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOA_PIN9, 0) |           \</span>
<a name="l00274"></a>00274 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOA_PIN10, 0) |          \</span>
<a name="l00275"></a>00275 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOA_PIN11, 0) |          \</span>
<a name="l00276"></a>00276 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOA_PIN12, 0) |          \</span>
<a name="l00277"></a>00277 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOA_SWDAT, 0) |          \</span>
<a name="l00278"></a>00278 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOA_SWCLK, 0) |          \</span>
<a name="l00279"></a>00279 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOA_PIN15, 0))</span>
<a name="l00280"></a>00280 <span class="preprocessor"></span>
<a name="l00281"></a>00281 <span class="comment">/*</span>
<a name="l00282"></a>00282 <span class="comment"> * GPIOB setup:</span>
<a name="l00283"></a>00283 <span class="comment"> *</span>
<a name="l00284"></a>00284 <span class="comment"> * PB0  - PIN0                      (input pullup).</span>
<a name="l00285"></a>00285 <span class="comment"> * PB1  - PIN1                      (input pullup).</span>
<a name="l00286"></a>00286 <span class="comment"> * PB2  - PIN2                      (input pullup).</span>
<a name="l00287"></a>00287 <span class="comment"> * PB3  - PIN3                      (input pullup).</span>
<a name="l00288"></a>00288 <span class="comment"> * PB4  - PIN4                      (input pullup).</span>
<a name="l00289"></a>00289 <span class="comment"> * PB5  - PIN5                      (input pullup).</span>
<a name="l00290"></a>00290 <span class="comment"> * PB6  - PIN6                      (input pullup).</span>
<a name="l00291"></a>00291 <span class="comment"> * PB7  - PIN7                      (input pullup).</span>
<a name="l00292"></a>00292 <span class="comment"> * PB8  - PIN8                      (input pullup).</span>
<a name="l00293"></a>00293 <span class="comment"> * PB9  - PIN9                      (input pullup).</span>
<a name="l00294"></a>00294 <span class="comment"> * PB10 - PIN10                     (input pullup).</span>
<a name="l00295"></a>00295 <span class="comment"> * PB11 - PIN11                     (input pullup).</span>
<a name="l00296"></a>00296 <span class="comment"> * PB12 - PIN12                     (input pullup).</span>
<a name="l00297"></a>00297 <span class="comment"> * PB13 - PIN13                     (input pullup).</span>
<a name="l00298"></a>00298 <span class="comment"> * PB14 - PIN14                     (input pullup).</span>
<a name="l00299"></a>00299 <span class="comment"> * PB15 - PIN15                     (input pullup).</span>
<a name="l00300"></a>00300 <span class="comment"> */</span>
<a name="l00301"></a><a class="code" href="board_8h.html#a39f5bc8c5a9ae9112cb64d4075b8be5a">00301</a> <span class="preprocessor">#define VAL_GPIOB_MODER             (PIN_MODE_INPUT(GPIOB_PIN0) |           \</span>
<a name="l00302"></a>00302 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOB_PIN1) |           \</span>
<a name="l00303"></a>00303 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOB_PIN2) |           \</span>
<a name="l00304"></a>00304 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOB_PIN3) |           \</span>
<a name="l00305"></a>00305 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOB_PIN4) |           \</span>
<a name="l00306"></a>00306 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOB_PIN5) |           \</span>
<a name="l00307"></a>00307 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOB_PIN6) |           \</span>
<a name="l00308"></a>00308 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOB_PIN7) |           \</span>
<a name="l00309"></a>00309 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOB_PIN8) |           \</span>
<a name="l00310"></a>00310 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOB_PIN9) |           \</span>
<a name="l00311"></a>00311 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOB_PIN10) |          \</span>
<a name="l00312"></a>00312 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOB_PIN11) |          \</span>
<a name="l00313"></a>00313 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOB_PIN12) |          \</span>
<a name="l00314"></a>00314 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOB_PIN13) |          \</span>
<a name="l00315"></a>00315 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOB_PIN14) |          \</span>
<a name="l00316"></a>00316 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOB_PIN15))</span>
<a name="l00317"></a><a class="code" href="board_8h.html#a84f32a5321a9bc68e7f87ac44886cba9">00317</a> <span class="preprocessor"></span><span class="preprocessor">#define VAL_GPIOB_OTYPER            (PIN_OTYPE_PUSHPULL(GPIOB_PIN0) |       \</span>
<a name="l00318"></a>00318 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOB_PIN1) |       \</span>
<a name="l00319"></a>00319 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOB_PIN2) |       \</span>
<a name="l00320"></a>00320 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOB_PIN3) |       \</span>
<a name="l00321"></a>00321 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOB_PIN4) |       \</span>
<a name="l00322"></a>00322 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOB_PIN5) |       \</span>
<a name="l00323"></a>00323 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOB_PIN6) |       \</span>
<a name="l00324"></a>00324 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOB_PIN7) |       \</span>
<a name="l00325"></a>00325 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOB_PIN8) |       \</span>
<a name="l00326"></a>00326 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOB_PIN9) |       \</span>
<a name="l00327"></a>00327 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOB_PIN10) |      \</span>
<a name="l00328"></a>00328 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOB_PIN11) |      \</span>
<a name="l00329"></a>00329 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOB_PIN12) |      \</span>
<a name="l00330"></a>00330 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOB_PIN13) |      \</span>
<a name="l00331"></a>00331 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOB_PIN14) |      \</span>
<a name="l00332"></a>00332 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOB_PIN15))</span>
<a name="l00333"></a><a class="code" href="board_8h.html#a39192c18809ac7cd77522b0e193fabb0">00333</a> <span class="preprocessor"></span><span class="preprocessor">#define VAL_GPIOB_OSPEEDR           (PIN_OSPEED_2M(GPIOB_PIN0) |            \</span>
<a name="l00334"></a>00334 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOB_PIN1) |            \</span>
<a name="l00335"></a>00335 <span class="preprocessor">                                     PIN_OSPEED_40M(GPIOB_PIN2) |           \</span>
<a name="l00336"></a>00336 <span class="preprocessor">                                     PIN_OSPEED_40M(GPIOB_PIN3) |           \</span>
<a name="l00337"></a>00337 <span class="preprocessor">                                     PIN_OSPEED_40M(GPIOB_PIN4) |           \</span>
<a name="l00338"></a>00338 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOB_PIN5) |            \</span>
<a name="l00339"></a>00339 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOB_PIN6) |            \</span>
<a name="l00340"></a>00340 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOB_PIN7) |            \</span>
<a name="l00341"></a>00341 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOB_PIN8) |            \</span>
<a name="l00342"></a>00342 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOB_PIN9) |            \</span>
<a name="l00343"></a>00343 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOB_PIN10) |           \</span>
<a name="l00344"></a>00344 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOB_PIN11) |           \</span>
<a name="l00345"></a>00345 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOB_PIN12) |           \</span>
<a name="l00346"></a>00346 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOB_PIN13) |           \</span>
<a name="l00347"></a>00347 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOB_PIN14) |           \</span>
<a name="l00348"></a>00348 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOB_PIN15))</span>
<a name="l00349"></a><a class="code" href="board_8h.html#a6d6a3a7d45de1e999e501ff106bcec3d">00349</a> <span class="preprocessor"></span><span class="preprocessor">#define VAL_GPIOB_PUPDR             (PIN_PUPDR_PULLUP(GPIOB_PIN0) |         \</span>
<a name="l00350"></a>00350 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOB_PIN1) |         \</span>
<a name="l00351"></a>00351 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOB_PIN2) |         \</span>
<a name="l00352"></a>00352 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOB_PIN3) |         \</span>
<a name="l00353"></a>00353 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOB_PIN4) |         \</span>
<a name="l00354"></a>00354 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOB_PIN5) |         \</span>
<a name="l00355"></a>00355 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOB_PIN6) |         \</span>
<a name="l00356"></a>00356 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOB_PIN7) |         \</span>
<a name="l00357"></a>00357 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOB_PIN8) |         \</span>
<a name="l00358"></a>00358 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOB_PIN9) |         \</span>
<a name="l00359"></a>00359 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOB_PIN10) |        \</span>
<a name="l00360"></a>00360 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOB_PIN11) |        \</span>
<a name="l00361"></a>00361 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOB_PIN12) |        \</span>
<a name="l00362"></a>00362 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOB_PIN13) |        \</span>
<a name="l00363"></a>00363 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOB_PIN14) |        \</span>
<a name="l00364"></a>00364 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOB_PIN15))</span>
<a name="l00365"></a><a class="code" href="board_8h.html#afbbc9829d1d73c13adbf94452a010edd">00365</a> <span class="preprocessor"></span><span class="preprocessor">#define VAL_GPIOB_ODR               (PIN_ODR_HIGH(GPIOB_PIN0) |             \</span>
<a name="l00366"></a>00366 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOB_PIN1) |             \</span>
<a name="l00367"></a>00367 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOB_PIN2) |             \</span>
<a name="l00368"></a>00368 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOB_PIN3) |             \</span>
<a name="l00369"></a>00369 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOB_PIN4) |             \</span>
<a name="l00370"></a>00370 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOB_PIN5) |             \</span>
<a name="l00371"></a>00371 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOB_PIN6) |             \</span>
<a name="l00372"></a>00372 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOB_PIN7) |             \</span>
<a name="l00373"></a>00373 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOB_PIN8) |             \</span>
<a name="l00374"></a>00374 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOB_PIN9) |             \</span>
<a name="l00375"></a>00375 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOB_PIN10) |            \</span>
<a name="l00376"></a>00376 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOB_PIN11) |            \</span>
<a name="l00377"></a>00377 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOB_PIN12) |            \</span>
<a name="l00378"></a>00378 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOB_PIN13) |            \</span>
<a name="l00379"></a>00379 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOB_PIN14) |            \</span>
<a name="l00380"></a>00380 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOB_PIN15))</span>
<a name="l00381"></a><a class="code" href="board_8h.html#a5772a31590fe61e808106e64711d8713">00381</a> <span class="preprocessor"></span><span class="preprocessor">#define VAL_GPIOB_AFRL              (PIN_AFIO_AF(GPIOB_PIN0, 0) |           \</span>
<a name="l00382"></a>00382 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOB_PIN1, 0) |           \</span>
<a name="l00383"></a>00383 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOB_PIN2, 0) |           \</span>
<a name="l00384"></a>00384 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOB_PIN3, 0) |           \</span>
<a name="l00385"></a>00385 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOB_PIN4, 0) |           \</span>
<a name="l00386"></a>00386 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOB_PIN5, 0) |           \</span>
<a name="l00387"></a>00387 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOB_PIN6, 0) |           \</span>
<a name="l00388"></a>00388 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOB_PIN7, 0))</span>
<a name="l00389"></a><a class="code" href="board_8h.html#adbfad33fc072d86908d2fe56b90b4af7">00389</a> <span class="preprocessor"></span><span class="preprocessor">#define VAL_GPIOB_AFRH              (PIN_AFIO_AF(GPIOB_PIN8, 0) |           \</span>
<a name="l00390"></a>00390 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOB_PIN9, 0) |           \</span>
<a name="l00391"></a>00391 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOB_PIN10, 0) |          \</span>
<a name="l00392"></a>00392 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOB_PIN11, 0) |          \</span>
<a name="l00393"></a>00393 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOB_PIN12, 0) |          \</span>
<a name="l00394"></a>00394 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOB_PIN13, 0) |          \</span>
<a name="l00395"></a>00395 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOB_PIN14, 0) |          \</span>
<a name="l00396"></a>00396 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOB_PIN15, 0))</span>
<a name="l00397"></a>00397 <span class="preprocessor"></span>
<a name="l00398"></a>00398 <span class="comment">/*</span>
<a name="l00399"></a>00399 <span class="comment"> * GPIOC setup:</span>
<a name="l00400"></a>00400 <span class="comment"> *</span>
<a name="l00401"></a>00401 <span class="comment"> * PC0  - PIN0                      (input pullup).</span>
<a name="l00402"></a>00402 <span class="comment"> * PC1  - PIN1                      (input pullup).</span>
<a name="l00403"></a>00403 <span class="comment"> * PC2  - PIN2                      (input pullup).</span>
<a name="l00404"></a>00404 <span class="comment"> * PC3  - PIN3                      (input pullup).</span>
<a name="l00405"></a>00405 <span class="comment"> * PC4  - PIN4                      (input pullup).</span>
<a name="l00406"></a>00406 <span class="comment"> * PC5  - PIN5                      (input pullup).</span>
<a name="l00407"></a>00407 <span class="comment"> * PC6  - PIN6                      (input pullup).</span>
<a name="l00408"></a>00408 <span class="comment"> * PC7  - PIN7                      (input pullup).</span>
<a name="l00409"></a>00409 <span class="comment"> * PC8  - LED4                      (output pushpull maximum).</span>
<a name="l00410"></a>00410 <span class="comment"> * PC9  - LED3                      (output pushpull maximum).</span>
<a name="l00411"></a>00411 <span class="comment"> * PC10 - PIN10                     (input pullup).</span>
<a name="l00412"></a>00412 <span class="comment"> * PC11 - PIN11                     (input pullup).</span>
<a name="l00413"></a>00413 <span class="comment"> * PC12 - PIN12                     (input pullup).</span>
<a name="l00414"></a>00414 <span class="comment"> * PC13 - PIN13                     (input pullup).</span>
<a name="l00415"></a>00415 <span class="comment"> * PC14 - OSC32_IN                  (input floating).</span>
<a name="l00416"></a>00416 <span class="comment"> * PC15 - OSC32_OUT                 (input floating).</span>
<a name="l00417"></a>00417 <span class="comment"> */</span>
<a name="l00418"></a><a class="code" href="board_8h.html#a54fc240187d9ad4ab5f7e900c049fdf7">00418</a> <span class="preprocessor">#define VAL_GPIOC_MODER             (PIN_MODE_INPUT(GPIOC_PIN0) |           \</span>
<a name="l00419"></a>00419 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOC_PIN1) |           \</span>
<a name="l00420"></a>00420 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOC_PIN2) |           \</span>
<a name="l00421"></a>00421 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOC_PIN3) |           \</span>
<a name="l00422"></a>00422 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOC_PIN4) |           \</span>
<a name="l00423"></a>00423 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOC_PIN5) |           \</span>
<a name="l00424"></a>00424 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOC_PIN6) |           \</span>
<a name="l00425"></a>00425 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOC_PIN7) |           \</span>
<a name="l00426"></a>00426 <span class="preprocessor">                                     PIN_MODE_OUTPUT(GPIOC_LED4) |          \</span>
<a name="l00427"></a>00427 <span class="preprocessor">                                     PIN_MODE_OUTPUT(GPIOC_LED3) |          \</span>
<a name="l00428"></a>00428 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOC_PIN10) |          \</span>
<a name="l00429"></a>00429 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOC_PIN11) |          \</span>
<a name="l00430"></a>00430 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOC_PIN12) |          \</span>
<a name="l00431"></a>00431 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOC_PIN13) |          \</span>
<a name="l00432"></a>00432 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOC_OSC32_IN) |       \</span>
<a name="l00433"></a>00433 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOC_OSC32_OUT))</span>
<a name="l00434"></a><a class="code" href="board_8h.html#a7543f04fa6799015c04039794a777f34">00434</a> <span class="preprocessor"></span><span class="preprocessor">#define VAL_GPIOC_OTYPER            (PIN_OTYPE_PUSHPULL(GPIOC_PIN0) |       \</span>
<a name="l00435"></a>00435 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOC_PIN1) |       \</span>
<a name="l00436"></a>00436 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOC_PIN2) |       \</span>
<a name="l00437"></a>00437 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOC_PIN3) |       \</span>
<a name="l00438"></a>00438 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOC_PIN4) |       \</span>
<a name="l00439"></a>00439 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOC_PIN5) |       \</span>
<a name="l00440"></a>00440 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOC_PIN6) |       \</span>
<a name="l00441"></a>00441 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOC_PIN7) |       \</span>
<a name="l00442"></a>00442 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOC_LED4) |       \</span>
<a name="l00443"></a>00443 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOC_LED3) |       \</span>
<a name="l00444"></a>00444 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOC_PIN10) |      \</span>
<a name="l00445"></a>00445 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOC_PIN11) |      \</span>
<a name="l00446"></a>00446 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOC_PIN12) |      \</span>
<a name="l00447"></a>00447 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOC_PIN13) |      \</span>
<a name="l00448"></a>00448 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOC_OSC32_IN) |   \</span>
<a name="l00449"></a>00449 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOC_OSC32_OUT))</span>
<a name="l00450"></a><a class="code" href="board_8h.html#a5e7885959c3b8293e0f1bb34872a6fe6">00450</a> <span class="preprocessor"></span><span class="preprocessor">#define VAL_GPIOC_OSPEEDR           (PIN_OSPEED_2M(GPIOC_PIN0) |            \</span>
<a name="l00451"></a>00451 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOC_PIN1) |            \</span>
<a name="l00452"></a>00452 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOC_PIN2) |            \</span>
<a name="l00453"></a>00453 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOC_PIN3) |            \</span>
<a name="l00454"></a>00454 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOC_PIN4) |            \</span>
<a name="l00455"></a>00455 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOC_PIN5) |            \</span>
<a name="l00456"></a>00456 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOC_PIN6) |            \</span>
<a name="l00457"></a>00457 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOC_PIN7) |            \</span>
<a name="l00458"></a>00458 <span class="preprocessor">                                     PIN_OSPEED_40M(GPIOC_LED4) |           \</span>
<a name="l00459"></a>00459 <span class="preprocessor">                                     PIN_OSPEED_40M(GPIOC_LED3) |           \</span>
<a name="l00460"></a>00460 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOC_PIN10) |           \</span>
<a name="l00461"></a>00461 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOC_PIN11) |           \</span>
<a name="l00462"></a>00462 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOC_PIN12) |           \</span>
<a name="l00463"></a>00463 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOC_PIN13) |           \</span>
<a name="l00464"></a>00464 <span class="preprocessor">                                     PIN_OSPEED_40M(GPIOC_OSC32_IN) |       \</span>
<a name="l00465"></a>00465 <span class="preprocessor">                                     PIN_OSPEED_40M(GPIOC_OSC32_OUT))</span>
<a name="l00466"></a><a class="code" href="board_8h.html#a6b854c2f1520264d0572b6980bea6a2c">00466</a> <span class="preprocessor"></span><span class="preprocessor">#define VAL_GPIOC_PUPDR             (PIN_PUPDR_PULLUP(GPIOC_PIN0) |         \</span>
<a name="l00467"></a>00467 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOC_PIN1) |         \</span>
<a name="l00468"></a>00468 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOC_PIN2) |         \</span>
<a name="l00469"></a>00469 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOC_PIN3) |         \</span>
<a name="l00470"></a>00470 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOC_PIN4) |         \</span>
<a name="l00471"></a>00471 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOC_PIN5) |         \</span>
<a name="l00472"></a>00472 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOC_PIN6) |         \</span>
<a name="l00473"></a>00473 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOC_PIN7) |         \</span>
<a name="l00474"></a>00474 <span class="preprocessor">                                     PIN_PUPDR_FLOATING(GPIOC_LED4) |       \</span>
<a name="l00475"></a>00475 <span class="preprocessor">                                     PIN_PUPDR_FLOATING(GPIOC_LED3) |       \</span>
<a name="l00476"></a>00476 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOC_PIN10) |        \</span>
<a name="l00477"></a>00477 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOC_PIN11) |        \</span>
<a name="l00478"></a>00478 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOC_PIN12) |        \</span>
<a name="l00479"></a>00479 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOC_PIN13) |        \</span>
<a name="l00480"></a>00480 <span class="preprocessor">                                     PIN_PUPDR_FLOATING(GPIOC_OSC32_IN) |   \</span>
<a name="l00481"></a>00481 <span class="preprocessor">                                     PIN_PUPDR_FLOATING(GPIOC_OSC32_OUT))</span>
<a name="l00482"></a><a class="code" href="board_8h.html#a4e07d89596c7b20d5b7c2327cbc9223a">00482</a> <span class="preprocessor"></span><span class="preprocessor">#define VAL_GPIOC_ODR               (PIN_ODR_HIGH(GPIOC_PIN0) |             \</span>
<a name="l00483"></a>00483 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOC_PIN1) |             \</span>
<a name="l00484"></a>00484 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOC_PIN2) |             \</span>
<a name="l00485"></a>00485 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOC_PIN3) |             \</span>
<a name="l00486"></a>00486 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOC_PIN4) |             \</span>
<a name="l00487"></a>00487 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOC_PIN5) |             \</span>
<a name="l00488"></a>00488 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOC_PIN6) |             \</span>
<a name="l00489"></a>00489 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOC_PIN7) |             \</span>
<a name="l00490"></a>00490 <span class="preprocessor">                                     PIN_ODR_LOW(GPIOC_LED4) |              \</span>
<a name="l00491"></a>00491 <span class="preprocessor">                                     PIN_ODR_LOW(GPIOC_LED3) |              \</span>
<a name="l00492"></a>00492 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOC_PIN10) |            \</span>
<a name="l00493"></a>00493 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOC_PIN11) |            \</span>
<a name="l00494"></a>00494 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOC_PIN12) |            \</span>
<a name="l00495"></a>00495 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOC_PIN13) |            \</span>
<a name="l00496"></a>00496 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOC_OSC32_IN) |         \</span>
<a name="l00497"></a>00497 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOC_OSC32_OUT))</span>
<a name="l00498"></a><a class="code" href="board_8h.html#af405d486ccb51c99a1252dfa4495363b">00498</a> <span class="preprocessor"></span><span class="preprocessor">#define VAL_GPIOC_AFRL              (PIN_AFIO_AF(GPIOC_PIN0, 0) |           \</span>
<a name="l00499"></a>00499 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOC_PIN1, 0) |           \</span>
<a name="l00500"></a>00500 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOC_PIN2, 0) |           \</span>
<a name="l00501"></a>00501 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOC_PIN3, 0) |           \</span>
<a name="l00502"></a>00502 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOC_PIN4, 0) |           \</span>
<a name="l00503"></a>00503 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOC_PIN5, 0) |           \</span>
<a name="l00504"></a>00504 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOC_PIN6, 0) |           \</span>
<a name="l00505"></a>00505 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOC_PIN7, 0))</span>
<a name="l00506"></a><a class="code" href="board_8h.html#a66a89dd26c96c9808c4610caa08ba2e4">00506</a> <span class="preprocessor"></span><span class="preprocessor">#define VAL_GPIOC_AFRH              (PIN_AFIO_AF(GPIOC_LED4, 0) |           \</span>
<a name="l00507"></a>00507 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOC_LED3, 0) |           \</span>
<a name="l00508"></a>00508 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOC_PIN10, 0) |          \</span>
<a name="l00509"></a>00509 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOC_PIN11, 0) |          \</span>
<a name="l00510"></a>00510 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOC_PIN12, 0) |          \</span>
<a name="l00511"></a>00511 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOC_PIN13, 0) |          \</span>
<a name="l00512"></a>00512 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOC_OSC32_IN, 0) |       \</span>
<a name="l00513"></a>00513 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOC_OSC32_OUT, 0))</span>
<a name="l00514"></a>00514 <span class="preprocessor"></span>
<a name="l00515"></a>00515 <span class="comment">/*</span>
<a name="l00516"></a>00516 <span class="comment"> * GPIOD setup:</span>
<a name="l00517"></a>00517 <span class="comment"> *</span>
<a name="l00518"></a>00518 <span class="comment"> * PD0  - PIN0                      (input pullup).</span>
<a name="l00519"></a>00519 <span class="comment"> * PD1  - PIN1                      (input pullup).</span>
<a name="l00520"></a>00520 <span class="comment"> * PD2  - PIN2                      (input pullup).</span>
<a name="l00521"></a>00521 <span class="comment"> * PD3  - PIN3                      (input pullup).</span>
<a name="l00522"></a>00522 <span class="comment"> * PD4  - PIN4                      (input pullup).</span>
<a name="l00523"></a>00523 <span class="comment"> * PD5  - PIN5                      (input pullup).</span>
<a name="l00524"></a>00524 <span class="comment"> * PD6  - PIN6                      (input pullup).</span>
<a name="l00525"></a>00525 <span class="comment"> * PD7  - PIN7                      (input pullup).</span>
<a name="l00526"></a>00526 <span class="comment"> * PD8  - PIN8                      (input pullup).</span>
<a name="l00527"></a>00527 <span class="comment"> * PD9  - PIN9                      (input pullup).</span>
<a name="l00528"></a>00528 <span class="comment"> * PD10 - PIN10                     (input pullup).</span>
<a name="l00529"></a>00529 <span class="comment"> * PD11 - PIN11                     (input pullup).</span>
<a name="l00530"></a>00530 <span class="comment"> * PD12 - PIN12                     (input pullup).</span>
<a name="l00531"></a>00531 <span class="comment"> * PD13 - PIN13                     (input pullup).</span>
<a name="l00532"></a>00532 <span class="comment"> * PD14 - PIN14                     (input pullup).</span>
<a name="l00533"></a>00533 <span class="comment"> * PD15 - PIN15                     (input pullup).</span>
<a name="l00534"></a>00534 <span class="comment"> */</span>
<a name="l00535"></a><a class="code" href="board_8h.html#a42f2ef726fc7a48b6038eee382c93c63">00535</a> <span class="preprocessor">#define VAL_GPIOD_MODER             (PIN_MODE_INPUT(GPIOD_PIN0) |           \</span>
<a name="l00536"></a>00536 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOD_PIN1) |           \</span>
<a name="l00537"></a>00537 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOD_PIN2) |           \</span>
<a name="l00538"></a>00538 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOD_PIN3) |           \</span>
<a name="l00539"></a>00539 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOD_PIN4) |           \</span>
<a name="l00540"></a>00540 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOD_PIN5) |           \</span>
<a name="l00541"></a>00541 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOD_PIN6) |           \</span>
<a name="l00542"></a>00542 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOD_PIN7) |           \</span>
<a name="l00543"></a>00543 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOD_PIN8) |           \</span>
<a name="l00544"></a>00544 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOD_PIN9) |           \</span>
<a name="l00545"></a>00545 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOD_PIN10) |          \</span>
<a name="l00546"></a>00546 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOD_PIN11) |          \</span>
<a name="l00547"></a>00547 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOD_PIN12) |          \</span>
<a name="l00548"></a>00548 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOD_PIN13) |          \</span>
<a name="l00549"></a>00549 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOD_PIN14) |          \</span>
<a name="l00550"></a>00550 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOD_PIN15))</span>
<a name="l00551"></a><a class="code" href="board_8h.html#a2e620d487db2d7240e759f66c3a68efa">00551</a> <span class="preprocessor"></span><span class="preprocessor">#define VAL_GPIOD_OTYPER            (PIN_OTYPE_PUSHPULL(GPIOD_PIN0) |       \</span>
<a name="l00552"></a>00552 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOD_PIN1) |       \</span>
<a name="l00553"></a>00553 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOD_PIN2) |       \</span>
<a name="l00554"></a>00554 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOD_PIN3) |       \</span>
<a name="l00555"></a>00555 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOD_PIN4) |       \</span>
<a name="l00556"></a>00556 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOD_PIN5) |       \</span>
<a name="l00557"></a>00557 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOD_PIN6) |       \</span>
<a name="l00558"></a>00558 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOD_PIN7) |       \</span>
<a name="l00559"></a>00559 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOD_PIN8) |       \</span>
<a name="l00560"></a>00560 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOD_PIN9) |       \</span>
<a name="l00561"></a>00561 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOD_PIN10) |      \</span>
<a name="l00562"></a>00562 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOD_PIN11) |      \</span>
<a name="l00563"></a>00563 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOD_PIN12) |      \</span>
<a name="l00564"></a>00564 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOD_PIN13) |      \</span>
<a name="l00565"></a>00565 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOD_PIN14) |      \</span>
<a name="l00566"></a>00566 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOD_PIN15))</span>
<a name="l00567"></a><a class="code" href="board_8h.html#a6a6cd142a0c0cde9125352343a8e6005">00567</a> <span class="preprocessor"></span><span class="preprocessor">#define VAL_GPIOD_OSPEEDR           (PIN_OSPEED_2M(GPIOD_PIN0) |            \</span>
<a name="l00568"></a>00568 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOD_PIN1) |            \</span>
<a name="l00569"></a>00569 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOD_PIN2) |            \</span>
<a name="l00570"></a>00570 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOD_PIN3) |            \</span>
<a name="l00571"></a>00571 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOD_PIN4) |            \</span>
<a name="l00572"></a>00572 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOD_PIN5) |            \</span>
<a name="l00573"></a>00573 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOD_PIN6) |            \</span>
<a name="l00574"></a>00574 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOD_PIN7) |            \</span>
<a name="l00575"></a>00575 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOD_PIN8) |            \</span>
<a name="l00576"></a>00576 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOD_PIN9) |            \</span>
<a name="l00577"></a>00577 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOD_PIN10) |           \</span>
<a name="l00578"></a>00578 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOD_PIN11) |           \</span>
<a name="l00579"></a>00579 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOD_PIN12) |           \</span>
<a name="l00580"></a>00580 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOD_PIN13) |           \</span>
<a name="l00581"></a>00581 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOD_PIN14) |           \</span>
<a name="l00582"></a>00582 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOD_PIN15))</span>
<a name="l00583"></a><a class="code" href="board_8h.html#aba79b3f3e2bd1622ae7db217c596f7ed">00583</a> <span class="preprocessor"></span><span class="preprocessor">#define VAL_GPIOD_PUPDR             (PIN_PUPDR_PULLUP(GPIOD_PIN0) |         \</span>
<a name="l00584"></a>00584 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOD_PIN1) |         \</span>
<a name="l00585"></a>00585 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOD_PIN2) |         \</span>
<a name="l00586"></a>00586 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOD_PIN3) |         \</span>
<a name="l00587"></a>00587 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOD_PIN4) |         \</span>
<a name="l00588"></a>00588 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOD_PIN5) |         \</span>
<a name="l00589"></a>00589 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOD_PIN6) |         \</span>
<a name="l00590"></a>00590 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOD_PIN7) |         \</span>
<a name="l00591"></a>00591 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOD_PIN8) |         \</span>
<a name="l00592"></a>00592 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOD_PIN9) |         \</span>
<a name="l00593"></a>00593 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOD_PIN10) |        \</span>
<a name="l00594"></a>00594 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOD_PIN11) |        \</span>
<a name="l00595"></a>00595 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOD_PIN12) |        \</span>
<a name="l00596"></a>00596 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOD_PIN13) |        \</span>
<a name="l00597"></a>00597 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOD_PIN14) |        \</span>
<a name="l00598"></a>00598 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOD_PIN15))</span>
<a name="l00599"></a><a class="code" href="board_8h.html#a67eac2b1434cea46ec00fdaad117cd6d">00599</a> <span class="preprocessor"></span><span class="preprocessor">#define VAL_GPIOD_ODR               (PIN_ODR_HIGH(GPIOD_PIN0) |             \</span>
<a name="l00600"></a>00600 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOD_PIN1) |             \</span>
<a name="l00601"></a>00601 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOD_PIN2) |             \</span>
<a name="l00602"></a>00602 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOD_PIN3) |             \</span>
<a name="l00603"></a>00603 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOD_PIN4) |             \</span>
<a name="l00604"></a>00604 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOD_PIN5) |             \</span>
<a name="l00605"></a>00605 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOD_PIN6) |             \</span>
<a name="l00606"></a>00606 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOD_PIN7) |             \</span>
<a name="l00607"></a>00607 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOD_PIN8) |             \</span>
<a name="l00608"></a>00608 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOD_PIN9) |             \</span>
<a name="l00609"></a>00609 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOD_PIN10) |            \</span>
<a name="l00610"></a>00610 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOD_PIN11) |            \</span>
<a name="l00611"></a>00611 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOD_PIN12) |            \</span>
<a name="l00612"></a>00612 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOD_PIN13) |            \</span>
<a name="l00613"></a>00613 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOD_PIN14) |            \</span>
<a name="l00614"></a>00614 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOD_PIN15))</span>
<a name="l00615"></a><a class="code" href="board_8h.html#a54d1a960b26a142dba05d5cd54902c4f">00615</a> <span class="preprocessor"></span><span class="preprocessor">#define VAL_GPIOD_AFRL              (PIN_AFIO_AF(GPIOD_PIN0, 0) |           \</span>
<a name="l00616"></a>00616 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOD_PIN1, 0) |           \</span>
<a name="l00617"></a>00617 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOD_PIN2, 0) |           \</span>
<a name="l00618"></a>00618 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOD_PIN3, 0) |           \</span>
<a name="l00619"></a>00619 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOD_PIN4, 0) |           \</span>
<a name="l00620"></a>00620 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOD_PIN5, 0) |           \</span>
<a name="l00621"></a>00621 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOD_PIN6, 0) |           \</span>
<a name="l00622"></a>00622 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOD_PIN7, 0))</span>
<a name="l00623"></a><a class="code" href="board_8h.html#afc3c4656818e047de4de36afc54d6e15">00623</a> <span class="preprocessor"></span><span class="preprocessor">#define VAL_GPIOD_AFRH              (PIN_AFIO_AF(GPIOD_PIN8, 0) |           \</span>
<a name="l00624"></a>00624 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOD_PIN9, 0) |           \</span>
<a name="l00625"></a>00625 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOD_PIN10, 0) |          \</span>
<a name="l00626"></a>00626 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOD_PIN11, 0) |          \</span>
<a name="l00627"></a>00627 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOD_PIN12, 0) |          \</span>
<a name="l00628"></a>00628 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOD_PIN13, 0) |          \</span>
<a name="l00629"></a>00629 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOD_PIN14, 0) |          \</span>
<a name="l00630"></a>00630 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOD_PIN15, 0))</span>
<a name="l00631"></a>00631 <span class="preprocessor"></span>
<a name="l00632"></a>00632 <span class="comment">/*</span>
<a name="l00633"></a>00633 <span class="comment"> * GPIOF setup:</span>
<a name="l00634"></a>00634 <span class="comment"> *</span>
<a name="l00635"></a>00635 <span class="comment"> * PF0  - OSC_IN                    (input floating).</span>
<a name="l00636"></a>00636 <span class="comment"> * PF1  - OSC_OUT                   (input floating).</span>
<a name="l00637"></a>00637 <span class="comment"> * PF2  - PIN2                      (input pullup).</span>
<a name="l00638"></a>00638 <span class="comment"> * PF3  - PIN3                      (input pullup).</span>
<a name="l00639"></a>00639 <span class="comment"> * PF4  - PIN4                      (input pullup).</span>
<a name="l00640"></a>00640 <span class="comment"> * PF5  - PIN5                      (input pullup).</span>
<a name="l00641"></a>00641 <span class="comment"> * PF6  - PIN6                      (input pullup).</span>
<a name="l00642"></a>00642 <span class="comment"> * PF7  - PIN7                      (input pullup).</span>
<a name="l00643"></a>00643 <span class="comment"> * PF8  - PIN8                      (input pullup).</span>
<a name="l00644"></a>00644 <span class="comment"> * PF9  - PIN9                      (input pullup).</span>
<a name="l00645"></a>00645 <span class="comment"> * PF10 - PIN10                     (input pullup).</span>
<a name="l00646"></a>00646 <span class="comment"> * PF11 - PIN11                     (input pullup).</span>
<a name="l00647"></a>00647 <span class="comment"> * PF12 - PIN12                     (input pullup).</span>
<a name="l00648"></a>00648 <span class="comment"> * PF13 - PIN13                     (input pullup).</span>
<a name="l00649"></a>00649 <span class="comment"> * PF14 - PIN14                     (input pullup).</span>
<a name="l00650"></a>00650 <span class="comment"> * PF15 - PIN15                     (input pullup).</span>
<a name="l00651"></a>00651 <span class="comment"> */</span>
<a name="l00652"></a><a class="code" href="board_8h.html#a2781f04e2f6682d822e9fca6a8aa4ed3">00652</a> <span class="preprocessor">#define VAL_GPIOF_MODER             (PIN_MODE_INPUT(GPIOF_OSC_IN) |         \</span>
<a name="l00653"></a>00653 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOF_OSC_OUT) |        \</span>
<a name="l00654"></a>00654 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOF_PIN2) |           \</span>
<a name="l00655"></a>00655 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOF_PIN3) |           \</span>
<a name="l00656"></a>00656 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOF_PIN4) |           \</span>
<a name="l00657"></a>00657 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOF_PIN5) |           \</span>
<a name="l00658"></a>00658 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOF_PIN6) |           \</span>
<a name="l00659"></a>00659 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOF_PIN7) |           \</span>
<a name="l00660"></a>00660 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOF_PIN8) |           \</span>
<a name="l00661"></a>00661 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOF_PIN9) |           \</span>
<a name="l00662"></a>00662 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOF_PIN10) |          \</span>
<a name="l00663"></a>00663 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOF_PIN11) |          \</span>
<a name="l00664"></a>00664 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOF_PIN12) |          \</span>
<a name="l00665"></a>00665 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOF_PIN13) |          \</span>
<a name="l00666"></a>00666 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOF_PIN14) |          \</span>
<a name="l00667"></a>00667 <span class="preprocessor">                                     PIN_MODE_INPUT(GPIOF_PIN15))</span>
<a name="l00668"></a><a class="code" href="board_8h.html#a32770ebb67e9c7ff6ce165259765d471">00668</a> <span class="preprocessor"></span><span class="preprocessor">#define VAL_GPIOF_OTYPER            (PIN_OTYPE_PUSHPULL(GPIOF_OSC_IN) |     \</span>
<a name="l00669"></a>00669 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOF_OSC_OUT) |    \</span>
<a name="l00670"></a>00670 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOF_PIN2) |       \</span>
<a name="l00671"></a>00671 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOF_PIN3) |       \</span>
<a name="l00672"></a>00672 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOF_PIN4) |       \</span>
<a name="l00673"></a>00673 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOF_PIN5) |       \</span>
<a name="l00674"></a>00674 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOF_PIN6) |       \</span>
<a name="l00675"></a>00675 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOF_PIN7) |       \</span>
<a name="l00676"></a>00676 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOF_PIN8) |       \</span>
<a name="l00677"></a>00677 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOF_PIN9) |       \</span>
<a name="l00678"></a>00678 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOF_PIN10) |      \</span>
<a name="l00679"></a>00679 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOF_PIN11) |      \</span>
<a name="l00680"></a>00680 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOF_PIN12) |      \</span>
<a name="l00681"></a>00681 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOF_PIN13) |      \</span>
<a name="l00682"></a>00682 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOF_PIN14) |      \</span>
<a name="l00683"></a>00683 <span class="preprocessor">                                     PIN_OTYPE_PUSHPULL(GPIOF_PIN15))</span>
<a name="l00684"></a><a class="code" href="board_8h.html#aa019726230902e124ce65fc02b81e29d">00684</a> <span class="preprocessor"></span><span class="preprocessor">#define VAL_GPIOF_OSPEEDR           (PIN_OSPEED_2M(GPIOF_OSC_IN) |          \</span>
<a name="l00685"></a>00685 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOF_OSC_OUT) |         \</span>
<a name="l00686"></a>00686 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOF_PIN2) |            \</span>
<a name="l00687"></a>00687 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOF_PIN3) |            \</span>
<a name="l00688"></a>00688 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOF_PIN4) |            \</span>
<a name="l00689"></a>00689 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOF_PIN5) |            \</span>
<a name="l00690"></a>00690 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOF_PIN6) |            \</span>
<a name="l00691"></a>00691 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOF_PIN7) |            \</span>
<a name="l00692"></a>00692 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOF_PIN8) |            \</span>
<a name="l00693"></a>00693 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOF_PIN9) |            \</span>
<a name="l00694"></a>00694 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOF_PIN10) |           \</span>
<a name="l00695"></a>00695 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOF_PIN11) |           \</span>
<a name="l00696"></a>00696 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOF_PIN12) |           \</span>
<a name="l00697"></a>00697 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOF_PIN13) |           \</span>
<a name="l00698"></a>00698 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOF_PIN14) |           \</span>
<a name="l00699"></a>00699 <span class="preprocessor">                                     PIN_OSPEED_2M(GPIOF_PIN15))</span>
<a name="l00700"></a><a class="code" href="board_8h.html#a27509d84ec428c3ec26142905c3f011f">00700</a> <span class="preprocessor"></span><span class="preprocessor">#define VAL_GPIOF_PUPDR             (PIN_PUPDR_FLOATING(GPIOF_OSC_IN) |     \</span>
<a name="l00701"></a>00701 <span class="preprocessor">                                     PIN_PUPDR_FLOATING(GPIOF_OSC_OUT) |    \</span>
<a name="l00702"></a>00702 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOF_PIN2) |         \</span>
<a name="l00703"></a>00703 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOF_PIN3) |         \</span>
<a name="l00704"></a>00704 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOF_PIN4) |         \</span>
<a name="l00705"></a>00705 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOF_PIN5) |         \</span>
<a name="l00706"></a>00706 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOF_PIN6) |         \</span>
<a name="l00707"></a>00707 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOF_PIN7) |         \</span>
<a name="l00708"></a>00708 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOF_PIN8) |         \</span>
<a name="l00709"></a>00709 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOF_PIN9) |         \</span>
<a name="l00710"></a>00710 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOF_PIN10) |        \</span>
<a name="l00711"></a>00711 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOF_PIN11) |        \</span>
<a name="l00712"></a>00712 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOF_PIN12) |        \</span>
<a name="l00713"></a>00713 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOF_PIN13) |        \</span>
<a name="l00714"></a>00714 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOF_PIN14) |        \</span>
<a name="l00715"></a>00715 <span class="preprocessor">                                     PIN_PUPDR_PULLUP(GPIOF_PIN15))</span>
<a name="l00716"></a><a class="code" href="board_8h.html#ab335eb9d43d391cc2c891587da70d3bd">00716</a> <span class="preprocessor"></span><span class="preprocessor">#define VAL_GPIOF_ODR               (PIN_ODR_HIGH(GPIOF_OSC_IN) |           \</span>
<a name="l00717"></a>00717 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOF_OSC_OUT) |          \</span>
<a name="l00718"></a>00718 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOF_PIN2) |             \</span>
<a name="l00719"></a>00719 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOF_PIN3) |             \</span>
<a name="l00720"></a>00720 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOF_PIN4) |             \</span>
<a name="l00721"></a>00721 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOF_PIN5) |             \</span>
<a name="l00722"></a>00722 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOF_PIN6) |             \</span>
<a name="l00723"></a>00723 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOF_PIN7) |             \</span>
<a name="l00724"></a>00724 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOF_PIN8) |             \</span>
<a name="l00725"></a>00725 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOF_PIN9) |             \</span>
<a name="l00726"></a>00726 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOF_PIN10) |            \</span>
<a name="l00727"></a>00727 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOF_PIN11) |            \</span>
<a name="l00728"></a>00728 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOF_PIN12) |            \</span>
<a name="l00729"></a>00729 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOF_PIN13) |            \</span>
<a name="l00730"></a>00730 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOF_PIN14) |            \</span>
<a name="l00731"></a>00731 <span class="preprocessor">                                     PIN_ODR_HIGH(GPIOF_PIN15))</span>
<a name="l00732"></a><a class="code" href="board_8h.html#ab33db8a93f5e34f7c9db84ebc69450a5">00732</a> <span class="preprocessor"></span><span class="preprocessor">#define VAL_GPIOF_AFRL              (PIN_AFIO_AF(GPIOF_OSC_IN, 0) |         \</span>
<a name="l00733"></a>00733 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOF_OSC_OUT, 0) |        \</span>
<a name="l00734"></a>00734 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOF_PIN2, 0) |           \</span>
<a name="l00735"></a>00735 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOF_PIN3, 0) |           \</span>
<a name="l00736"></a>00736 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOF_PIN4, 0) |           \</span>
<a name="l00737"></a>00737 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOF_PIN5, 0) |           \</span>
<a name="l00738"></a>00738 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOF_PIN6, 0) |           \</span>
<a name="l00739"></a>00739 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOF_PIN7, 0))</span>
<a name="l00740"></a><a class="code" href="board_8h.html#a47952951048cb682536ff38cb754cf74">00740</a> <span class="preprocessor"></span><span class="preprocessor">#define VAL_GPIOF_AFRH              (PIN_AFIO_AF(GPIOF_PIN8, 0) |           \</span>
<a name="l00741"></a>00741 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOF_PIN9, 0) |           \</span>
<a name="l00742"></a>00742 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOF_PIN10, 0) |          \</span>
<a name="l00743"></a>00743 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOF_PIN11, 0) |          \</span>
<a name="l00744"></a>00744 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOF_PIN12, 0) |          \</span>
<a name="l00745"></a>00745 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOF_PIN13, 0) |          \</span>
<a name="l00746"></a>00746 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOF_PIN14, 0) |          \</span>
<a name="l00747"></a>00747 <span class="preprocessor">                                     PIN_AFIO_AF(GPIOF_PIN15, 0))</span>
<a name="l00748"></a>00748 <span class="preprocessor"></span>
<a name="l00749"></a>00749 
<a name="l00750"></a>00750 <span class="preprocessor">#if !defined(_FROM_ASM_)</span>
<a name="l00751"></a>00751 <span class="preprocessor"></span><span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00752"></a>00752 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {
<a name="l00753"></a>00753 <span class="preprocessor">#endif</span>
<a name="l00754"></a>00754 <span class="preprocessor"></span>  <span class="keywordtype">void</span> <a class="code" href="board_8c.html#a48edc646a1de1ba488bbe7d786df9bae" title="Board-specific initialization code.">boardInit</a>(<span class="keywordtype">void</span>);
<a name="l00755"></a>00755 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00756"></a>00756 <span class="preprocessor"></span>}
<a name="l00757"></a>00757 <span class="preprocessor">#endif</span>
<a name="l00758"></a>00758 <span class="preprocessor"></span><span class="preprocessor">#endif </span><span class="comment">/* _FROM_ASM_ */</span>
<a name="l00759"></a>00759 
<a name="l00760"></a>00760 <span class="preprocessor">#endif </span><span class="comment">/* _BOARD_H_ */</span>
</pre></div></div><!-- contents -->
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="board_8h.html">board.h</a>      </li>

    <li class="footer">Generated on Wed Jun 5 2013 12:23:45 for Ball Balancing Plate by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6.1 </li>
   </ul>
 </div>


</body>
</html>
